class SpecLogger {
	def static void error(Object msg, Exception ex){
		println msg
		ex.printStackTrace()
	}

	def static void info(Object msg){
		println msg
	}

	def static void debug(Object msg){
		if(SpecConfig.isDebug())
			println msg
	}

	def static void report(String suite, List specList){
		println 'Test suite : ' + suite

		for(spec in specList){
			println '  Spec result for : ' + spec.spec
			println '  ' + spec.result
		}
	}
}
